<!-- 설명 -->
<!--#include("header.html")-->
<!--%import("filter/delete_checked_msg.xml")-->

<form action="./" method="get" class="adminSearch">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="message_type" value="{$message_type}" />

    <fieldset>

        <select name="is_readed">
            <option value="">{$lang->total}</option>
            <!--@foreach($lang->readed_list as $key => $val)-->
            <option value="{$key}" <!--@if($is_readed==$key)-->selected="selected"<!--@end-->>{$val}</option>
            <!--@end-->
		</select>
        <select name="search_target">
            <option value="">{$lang->search_target}</option>
            <!--@foreach($lang->search_target_list as $key => $val)-->
            <option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
            <!--@end-->
        </select>
        <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
        <span class="button black strong"><input type="submit" value="{$lang->cmd_search}" /></span>
        <a href="#" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
    </fieldset>
</form>

<!-- 목록 -->
<!--@if($message)-->
<!--#include("view.html")-->
<!--@end-->
<form method="get" action="./" onsubmit="return procFilter(this, delete_checked_msg)" id="message_fo">
<input type="hidden" name="message_type" value="{$message_type}" />
	<table cellspacing="0" class="rowTable">
    <caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
    <thead>
        <tr>
            <th scope="col"><div>{$lang->no}</div></th>
            <th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;"/></div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->sender}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->receiver}</div></th>
			<th scope="col"><div>{$lang->title}</div></th>
            <th scope="col"><div>{$lang->cmd_confirm}</div></th>
            <th scope="col"><div>{$lang->regdate}</div></th>
			<th scope="col" colspan="2"><div>&nbsp;</div></th>
        </tr>
    </thead>
    <tbody>
        <!--@foreach($msg_list as $no => $val)-->
		{@
		    $val->sender = $oMemberModel->getMemberInfoByMemberSrl($val->sender_srl);
		    $val->receiver = $oMemberModel->getMemberInfoByMemberSrl($val->receiver_srl);
		}
		<tr class="row{$cycle_idx}">
            <td>{$no}</td>
            <td><input type="checkbox" name="cart" value="{$val->message_srl}"/></td>
            <td><div class="member_{$val->sender->member_srl}">{$val->sender->nick_name}</div></td>
            <td><div class="member_{$val->receiver->member_srl}">{$val->receiver->nick_name}</div></td>
			<td><a href="{getUrl('act','dispMsg_adminAdminList','message_srl', $val->message_srl,'message_type', $message_type)}" title="{htmlspecialchars($val->title)}">{htmlspecialchars($val->title)}</a></td>
            <td>{$val->readed}</td>
			<td>{zdate($val->regdate,"Y-m-d H:i:s")}</td>
            <td><a href="{getUrl('act','dispMsg_adminAdminModify','message_srl', $val->message_srl,'message_type', $message_type)}" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
			<td><a href="{getUrl('act','dispMsg_adminAdminDelete','message_srl', $val->message_srl,'message_type', $message_type)}" title="{$lang->cmd_delete}" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
        </tr>
        <!--@end-->
    </tbody>
    </table>

    <!-- 버튼 -->
    <div class="clear">
        <div class="fl">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_delete}" /></span>
        </div>
        <div class="fr">
            <a href="{getUrl('act','dispMsg_adminAdminInsert')}" class="button black strong"><span>{$lang->cmd_send_message}</span></a>
        </div>
    </div>

    <!-- 페이지 네비게이션 -->
    <div class="pagination a1">
        <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
        <!--@while($page_no = $page_navigation->getNextPage())-->
            <!--@if($page == $page_no)-->
                <strong>{$page_no}</strong> 
            <!--@else-->
                <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
            <!--@end-->
        <!--@end-->
        <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
    </div>
</form>

<form action="./" method="get" class="adminSearch">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="message_type" value="{$message_type}" />
    <fieldset>

        <select name="is_readed">
            <option value="">{$lang->total}</option>
            <!--@foreach($lang->is_readed as $key => $val)-->
            <option value="{$key}" <!--@if($is_readed==$key)-->selected="selected"<!--@end-->>{$val}</option>
            <!--@end--> 
		</select>
        <select name="search_target">
            <option value="">{$lang->search_target}</option>
            <!--@foreach($lang->search_target_list as $key => $val)-->
            <option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
            <!--@end-->
        </select>
        <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
        <span class="button black strong"><input type="submit" value="{$lang->cmd_search}" /></span>
        <a href="#" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
    </fieldset>
</form>
